<%@ page import="com.student" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/22
  Time: 23:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    student student=new student("lisa",1);
    student student1=new student("Tom",2);
    student student2=new student("Jon",1+2);
    List<student> list=new ArrayList();
    list.add(student);
    list.add(student1);
    list.add(student2);
    %>
<table border="" align="center">
    <tr>
        <td>学员编号</td>
        <td>学员姓名</td>
    </tr>
    <%
        for (student s:list
             ) {%>
    <tr>
        <td>
            <%=(s.getName())%></td>
          <td>  <%=(s.getId())%></td>
    </tr>
        <%}%>
    <tr>
        <td colspan="2">
            <%String name=request.getParameter("name");
            String password=request.getParameter("password");
            %>
            账号：<%=name%><br>
            密码：<%=password%>
        </td>
    </tr>
</table>
</body>
</html>
